Skip to content

fix: revert type re-exports from ORM indexes, restore migrate-client entry point#892

Merged
pyramation merged 1 commit intomainfrom
devin/1774429543-fix-type-exports-complete
Mar 25, 2026
Merged

fix: revert type re-exports from ORM indexes, restore migrate-client entry point#892
pyramation merged 1 commit intomainfrom
devin/1774429543-fix-type-exports-complete

Conversation

@pyramation
Copy link
Copy Markdown
Contributor

Summary

The previous revert of commit d0c5a9f74 ("types") only fixed the codegen template but missed two things:

  1. 9 already-generated ORM index files still had export * from './types' and export type { ConnectionResult, PageInfo } from './select-types' — causing ~80+ TS2308 name collision errors at build time
  2. sdk/migrate-client/src/index.ts was deleted in that same commit and never restored — causing tsc to fail with "No inputs were found in config file"

This PR removes the leftover export * from './types' lines from all 9 generated ORM index files (constructive-cli, constructive-react, migrate-client) and restores the deleted migrate-client entry point.

Review & Testing Checklist for Human

  • Run pnpm build from repo root — should complete with zero errors (previously failed on sdk/migrate-client and any package importing from ORM barrels)
  • Verify the codegen template (graphql/codegen/src/core/codegen/orm/client-generator.ts) does NOT contain export * from './types' — this was fixed in a prior revert and is not part of this diff, but confirms future regenerations will be correct
  • Spot-check that sdk/migrate-client/src/index.ts content (export * from './migrate') matches what existed before d0c5a9f74

Notes

  • The export * from './types' approach was fundamentally broken: input-types.ts contains 2000+ generated types that collide with names in select-types.ts and shared hooks types. This cannot be fixed with explicit re-exports at scale.
  • The types.ts barrel file still exists in each ORM directory and remains importable directly — it's just not re-exported through the main ORM index to avoid collisions.
  • These are generated files, but the codegen template was already corrected, so future regenerations will not reintroduce these lines.

Link to Devin session: https://app.devin.ai/sessions/ce1b2dafd42341bea5d7793b0c05ba6c
Requested by: @pyramation

…entry point

The 'types' commit (d0c5a9f) added export * from './types' to all generated
ORM index files and deleted sdk/migrate-client/src/index.ts. The subsequent
revert only fixed the codegen template but not the already-generated SDK files.

This commit:
- Removes export * from './types' from all 9 generated ORM index files
- Removes export type { ConnectionResult, PageInfo } from './select-types'
- Restores sdk/migrate-client/src/index.ts (re-exports from ./migrate)
@devin-ai-integration
Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@pyramation pyramation merged commit f1a8c2a into main Mar 25, 2026
43 checks passed
@pyramation pyramation deleted the devin/1774429543-fix-type-exports-complete branch March 25, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant